package com.jason.item.dao;

import com.jason.item.dao.entity.Item;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Item record);

    int insertSelective(Item record);

    Item selectByPrimaryKey(Integer id);

    List<Item> selectAll();

    int updateByPrimaryKeySelective(Item record);

    int updateByPrimaryKey(Item record);

    int increaseItemSales(@Param("id") Integer id, @Param("amount")Integer amount);
}